package com.smartStatus.websocket.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

import javax.websocket.server.ServerEndpoint;

/**
 * @ClassName : WebsocketConfig
 * @Author : lby
 * @Date: 2021/6/17 15:20
 * @Description : websocket配置
 */
@Configuration
public class WebsocketConfig {


    /**
     * 配置ServerEndpointExporter
     * @return
     */
    @Bean
    public ServerEndpointExporter serverEndpoint(){
        return new ServerEndpointExporter();
    }
}
